package homeWrok4;

import java.util.Scanner;

public class x {
    public static void main(String[] args){
        Scanner s = new Scanner(System.in);
        while (s.hasNextInt()){
            int n = s.nextInt();
            if (n < 2 || n > 20){
                throw new RuntimeException("n 必须是[2,20] ");
            }
            else for (int i = 0; i < n; i++) {         //行
                for (int j = 0; j < n; j++) {     //列
                    if (i == j || j == n - i - 1) {
                        System.out.printf("x");
                    } else {
                        System.out.printf(" ");
                    }
                }
                System.out.println();
            }
        }
    }
}
